Piwik\Plugins\SitesManager\API D

Total Complexity 201
Dependencies 31
Dependents 26
Total lines 1,398
Lines of code 782
Logical lines of code 522
Comment lines 514
Methods 74
Properties 5

Methods 74

Method Rating Maintainability Complexity Lines of code
addSite()
B
36 16 75
updateSite()
B
38 16 66
getTimezoneName()
A
47 10 34
getSitesWithAdminAccess()
A
54 8 21
getSitesIdWithAtLeastViewAccess()
A
55 8 19
setSettingValue()
S
55 7 20
getTimezonesList()
S
52 6 25
getImageTrackingCode()
S
52 6 21
getPatternMatchSites()
S
58 6 15
setGlobalExcludedReferrers()
S
58 5 13
deleteSite()
S
55 4 19
getTimezonesListUTCOffsets()
S
55 4 15
getJavascriptTag()
S
57 4 15
checkAndReturnExcludedIps()
S
59 4 14
getExcludedReferrers()
S
60 4 14
enrichSite()
S
59 4 13
checkValidTimezone()
S
62 4 11
addSiteAliasUrls()
S
57 3 17
renameGroup()
S
61 3 11
getSearchKeywordParametersGlobal()
S
64 3 11
checkAndReturnType()
S
66 3 9
removeTrailingSlash()
S
69 3 6
getSitesIdFromSiteUrl()
S
63 2 11
getSitesIdFromTimezones()
S
63 2 11
checkAndReturnCommaSeparatedStringList()
S
63 2 11
getAllSites()
S
63 2 11
getCurrencyList()
S
63 2 10
getExcludedQueryParameters()
S
66 2 8
getIpsForRange()
S
68 2 7
getExcludedReferrersGlobal()
S
72 2 5
getDefaultTimezone()
S
70 2 7
detectConsentManager()
S
62 2 10
checkValidCurrency()
S
71 2 5
getAllSitesId()
S
68 2 8
saveMeasurableSettings()
S
70 2 6
getSitesFromGroup()
S
64 2 10
getDefaultCurrency()
S
68 2 8
getSitesFromIds()
S
67 2 8
getSiteFromId()
S
66 2 9
checkName()
S
73 2 5
setSiteAliasUrls()
S
63 1 11
getNumWebsitesToDisplayPerPage()
S
77 1 4
setDefaultTimezone()
S
71 1 6
isValidIp()
S
79 1 3
updateSiteCreatedTime()
S
70 1 6
getCurrencySymbols()
S
68 1 7
isValidUrl()
S
80 1 3
getUniqueSiteTimezones()
S
77 1 4
isTimezoneSupportEnabled()
S
77 1 4
setDefaultCurrency()
S
71 1 6
__construct()
S
71 1 6
getExcludedIpsGlobal()
S
77 1 4
getNormalizedUrls()
S
68 1 6
getSitesGroups()
S
71 1 6
getModel()
S
78 1 3
getSiteUrlsFromId()
S
77 1 4
getSitesId()
S
81 1 3
getSitesWithViewAccess()
S
76 1 4
getSitesWithAtLeastViewAccess()
S
75 1 4
getSitesIdWithAdminAccess()
S
77 1 4
getSitesIdWithViewAccess()
S
81 1 3
getSitesIdWithWriteAccess()
S
81 1 3
getSiteSettings()
S
72 1 5
setGlobalExcludedQueryParameters()
S
69 1 7
setAndValidateMeasurableSettings()
S
72 1 5
postUpdateWebsite()
S
71 1 6
setGlobalSearchParameters()
S
69 1 7
getSearchCategoryParametersGlobal()
S
77 1 4
getExcludedQueryParametersGlobal()
S
77 1 4
getExcludedUserAgentsGlobal()
S
77 1 4
setGlobalExcludedUserAgents()
S
71 1 6
getKeepURLFragmentsGlobal()
S
76 1 4
setKeepURLFragmentsGlobal()
S
74 1 5
setGlobalExcludedIps()
S
69 1 7